package com.jy.adscm.operation.lxcg.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;

/**
 * <p>
 * bom与供应商
 * </p>
 *
 * @author zyl
 * @since 2019-08-15
 */
public class LxcgBomSupplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * bomId
     */
    private Long bid;
    @TableField(exist = false)
    private  LxcgMaterial lxcgMaterial;
    /**
     * 供应商id
     */
    private Long sid;
    @TableField(exist = false)
    private  LxcgSupplier lxcgSupplier;
    /**
     * 最小采购量
     */
    private Integer minPurchase;
    /**
     * 采购提前期
     */
    private Integer predate;
    /**
     * 单价
     */
    private Float price;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 采购类型（月采购，年采购）
     */
    private Integer type;

    public LxcgMaterial getLxcgMaterial() {
        return lxcgMaterial;
    }

    public void setLxcgMaterial(LxcgMaterial lxcgMaterial) {
        this.lxcgMaterial = lxcgMaterial;
    }

    public LxcgSupplier getLxcgSupplier() {
        return lxcgSupplier;
    }

    public void setLxcgSupplier(LxcgSupplier lxcgSupplier) {
        this.lxcgSupplier = lxcgSupplier;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBid() {
        return bid;
    }

    public void setBid(Long bid) {
        this.bid = bid;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public Integer getMinPurchase() {
        return minPurchase;
    }

    public void setMinPurchase(Integer minPurchase) {
        this.minPurchase = minPurchase;
    }

    public Integer getPredate() {
        return predate;
    }

    public void setPredate(Integer predate) {
        this.predate = predate;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "LxcgBomSupplier{" +
        "id=" + id +
        ", bid=" + bid +
        ", sid=" + sid +
        ", minPurchase=" + minPurchase +
        ", predate=" + predate +
        ", price=" + price +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", type=" + type +
        "}";
    }
}
